package test.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述: TODO
 * 作者: yanruizhi
 * 时间: 2023/8/11 11:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeEntity {
    private String id;
    private String parentId;
    private String name;
    private List<TreeEntity> child;

    public TreeEntity(String id, String parentId, String name) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
    }
}
